import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { FormsModule } from '@angular/forms';
import { OrganizationComponent } from './organization.component';

@NgModule({
  imports: [
    CommonModule,
    NgZorroAntdModule,
    FormsModule,
    RouterModule.forChild([
      {
        path: '', component: OrganizationComponent,
        children: [
          { path: 'department', loadChildren: './department-management/department-management.module#DepartmentManagementModule' }, // 部门管理
          { path: 'role', loadChildren: './role/role.module#RoleModule' }, // 角色管理
          { path: 'member', loadChildren: './member/member.module#MemberModule' }, // 人员管理
          { path: 'syslogs', loadChildren: './sysLogs/sys-logs/sys-logs.module#SysLogsModule' }, // 系统日志
        ]
      }
    ])
  ],
  declarations: [OrganizationComponent]
})
export class OrganizationModule { }
